package test;

import exthread.MyThread;

import exthread.MyThread;

public class Run {
	public static void main(String[] args) {
		MyThread thread = new MyThread();
		thread.start();
		thread.interrupt();
		System.out.println("end!");
	}

	/**
	 * 输出结果：
	 * i=100000
	 run begin
	 先停止，再遇到了sleep!进入catch!
	 java.lang.InterruptedException: sleep interrupted
	 at java.lang.Thread.sleep(Native Method)
	 at exthread.MyThread.run(MyThread.java:12)
	 *
	 *
	 */
}
